package com.datamining.myscalatest

import org.apache.spark.{SparkConf, SparkContext}

/**
  * Created by Administrator on 2016/10/29.
  */
class ScalaTestEntity {

  def test(str: String): String = {
    println("啦啦啦")

    val str = "2::1193::5::978300760";

    val sss = str.split("::").map(x => {
      println(x)
    });

    val sparkConf = new SparkConf();
    sparkConf.setMaster("local[1]");
    sparkConf.setAppName("asd");

    val sparkContext = new SparkContext(sparkConf);

    return "scala : " + str;
  }
}
